package br.com.invest.action;

import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;

/**
 *
 * @author Kirmaier
 */
public class Teste {

    public static void executarBuscaCotacao() {
        Calendar horaAtual = GregorianCalendar.getInstance();
        horaAtual.setTime(new Date());
        System.out.println(horaAtual);

        int horaLimite = 9;
        System.out.println(horaAtual.get(Calendar.HOUR_OF_DAY) > horaLimite);
    }
    
public static void testarHora(){
     Calendar horaAtual = GregorianCalendar.getInstance();
      horaAtual.setTime(new Date());
      System.out.println("TESTANDO ESSE CARAI ");
      System.out.println(Calendar.DAY_OF_MONTH);
}
    public static void main(String[] args) {
        Teste.executarBuscaCotacao();
        //Teste.testarHora();
    }
}
